package com.db.server.task;

import com.db.derby.DBAccess;

/**
 * Created by Student on 27.11.2014.
 */
public class TaskGetRoomHistory implements Task {
    private DBAccess db;
    private String room;

    public TaskGetRoomHistory(DBAccess db, String room) {
        this.db = db;
        this.room = room;
    }

    @Override
    public String doTask() {
        return db.getRoomHistory(room);
    }
}
